package com.wzx.data.entity;
import com.wzx.basics.baseClass.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 视频访问 实体类
 * @author wzx
 * @since 2023/03/20
 */
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "a_video_visitor")
@TableName("a_video_visitor")
@ApiModel(value = "视频访问")
public class VideoVisitor extends BaseEntity {

    private static final long serialVersionUID = 1L;
    /**
     * 课程id
     */
    private String courseId;

    /**
     * 视频id
     */
    private String videoId;

    /**
     * 来访者用户id
     */
    private String userId;

    /**
     * 昵称
     */
    private String nickName;

    /**
     * 进入时间
     */
    private String joinTime;

    /**
     * 离开的时间
     */
    private String leaveTime;

    /**
     * 用户停留的时间(单位：秒)
     */
    private Long duration;

}